package com.itheima.health.dao;

import com.itheima.health.pojo.vo.OrderSettingVo;
import com.itheima.health.pojo.entity.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Mapper
public interface OrdersettingDao {

//    void updateFuking(OrderSetting orderSetting);

//    Integer fuckingSearchFor(Date orderDate);


    List<OrderSettingVo> getOrderSetting(LocalDate begin, LocalDate end);

    Integer insertfuckingSearchFor(LocalDate orderDate, int number);

    @Select("select * from t_ordersetting where orderDate = #{orderDate}")
    List<OrderSetting> existDate(LocalDate localDate);

    void updateFuking( LocalDate localDate,int number);

    OrderSetting findByOrderDate(Date date);

    void editReservationsByOrderDate(OrderSetting orderSetting);
}
